import { $axios } from '@/utils/http';

// 添加地址
export async function addAddress(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/address/addAddress',
    method: 'POST',
    params,
  });
}

// 拿到地址列表
export async function getAddressList(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/address/getAddressList',
    method: 'GET',
    params,
  });
}

// 删除地址
export async function removeAddress(params?: RecordItem) {
  return $axios.request({
    url: 'http://localhost:8090/dyh/address/removeAddress',
    method: 'GET',
    params,
  });
}
